package com.masterlu.leetcode.thread.simple;

/**
 * 1114. 按序打印
 * https://leetcode-cn.com/problems/print-in-order/
 *
 * @date created in 2021/5/26 17:03
 */
public class Foo {

    public Foo() {

    }

    public void first(Runnable printFirst) throws InterruptedException {

        // printFirst.run() outputs "first". Do not change or remove this line.
        printFirst.run();
    }

    public void second(Runnable printSecond) throws InterruptedException {

        // printSecond.run() outputs "second". Do not change or remove this line.
        printSecond.run();
    }

    public void third(Runnable printThird) throws InterruptedException {

        // printThird.run() outputs "third". Do not change or remove this line.
        printThird.run();
    }

}
